import { src, dest } from "gulp";

import sassdoc from "sassdoc";
import { FileTask } from "../utils/baseTaskClass";
import { DOSC_GROUPS } from "../../config/dosc";

export class SassDosc extends FileTask {
  constructor(path: string | string[]) {
    super(path);
  }

  generate(out: string) {
    src("./scss/_xz-helper.scss")
      .pipe(sassdoc({
        dest: out,
        package: "../package.json",
        groups: DOSC_GROUPS
      }));
  }
}
